package com.foreveross.taskservice.application.impl.task.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.foreveross.taskservice.application.impl.BaseJpaApplicationImpl;
import com.foreveross.taskservice.application.task.service.ITaskQueueLogApplication;
import com.foreveross.taskservice.core.domain.task.TaskQueueRecordEntity;
@Service
@Transactional
public class TaskQueueLogApplicationImpl extends BaseJpaApplicationImpl implements ITaskQueueLogApplication{
	/**
	 * 批量保存，以后可以用 jdbc实现
	 */
	public void save(List<TaskQueueRecordEntity> tasks)throws Exception{
		for(TaskQueueRecordEntity t:tasks){
			//t.setRemarks(null);//暂时屏蔽
			save(t);
		}
	};
}
